/** @brief    形函数参数坐标计算
 * 
 * @version  0.1
 * @author   wanghuan
 * @date     2025.03.30
 *         _
 *     ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *    / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *    \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *    |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                          |___/             |___/
 * @copyright (c) 2025 by 神工仿真, All Rights Reserved.
 */

#pragma once
#include "Utility/Algebra/Matrix.h"
#include "DataStructure/Common/Real.h"
#include "SGFem/FEMSolverModule.h"
#include "../Common/IntegrationExport.h"

SG_FEMSOLVER_NAMESPACE_OPEN
namespace Element {
    /** @brief 计算物理坐标在四节点四边形中对应的对应的参数坐标  
     *    
     * 
     * @param    point 插值点的局部坐标
     * @param    plane 四边形节点的局部坐标
     * @param[out]     xi   参数坐标 \xi
     * @param[out]     eta  参数坐标 \eta
     * @return   
     * @author   yangqiuyou
     * @date     2025.03.01
     */
    Integration_DECLSPEC void quad4ComputeIntegCoord (const SG::Algebra::Matrix& point, const SG::Algebra::Matrix& plane, SG::DataStructure::Common::Real& _OUT xi, SG::DataStructure::Common::Real& _OUT eta);
}; // end Element namespace
SG_FEMSOLVER_NAMESPACE_CLOSE
